package lt.f2g.services.impl;

import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;

import lt.f2g.domain.UserAccount;
import lt.f2g.services.Test;

import org.springframework.stereotype.Service;

@Service
public class TestServiceImpl implements Test {

    @PersistenceContext
    private EntityManager em;
    
    public List<UserAccount> getThings() {
	Query query = em.createQuery("from UserAccount");
	return query.getResultList();
    }

}
